import { http } from '@/utils/http'

export function getSurveyList(params?: any) {
  return http({ url: 'wx/survey/list', method: 'GET', data: params })
}

export function getSurveyDetail(params?: any) {
  return http({ url: 'wx/survey/detail', method: 'GET', data: params })
}

export function submitSurvey(data?: any) {
  return http({ url: 'wx/survey/answer', method: 'POST', data })
}

export function getSurveyResult(params?: any) {
  return http({ url: 'wx/survey/result', method: 'GET', data: params })
}
